import React from 'react';
import {HashRouter, Route, Switch} from 'react-router-dom';
import Home from '../pages/home/home';
import DataFlow from '../pages/dataFlow/index';
import Test from '../pages/dataFlow/test.js';

const BasicRoute = () => (
    <HashRouter>
        <Switch>
            <Route exact path="/" component={Home}/>
            <Route path="/dataFlow" component={DataFlow}/>   {/* 这个页面是专门研究父子组件传值，父组件更新子组件视图 */}
            <Route path="/test" component={Test}/> 

        </Switch>
    </HashRouter>
);


export default BasicRoute;